package com.framewiki.example;

import com.cdkjframework.util.encrypts.Md5Utils;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import com.cdkjframework.all.jpa.annotation.EnableAutoWiki;
import com.cdkjframework.core.spring.CdkjApplication;

@EnableAutoWiki
@SpringBootApplication(exclude = {
    DataSourceAutoConfiguration.class
}, scanBasePackages = {
    "com.framewiki.example",
    "com.cdkjframework.core",
    "com.cdkjframework.oauth2"
})
@EntityScan(basePackages = {
    "com.framewiki.example.entity"
})
public class Oauth2Application {
  public static void main(String[] args) {
    CdkjApplication.run(Oauth2Application.class, args);
    long timestamp = System.currentTimeMillis() / 1000;
    String input = "client_id=client123&client_secret=secret123&timestamp=" + timestamp;
    System.out.println(timestamp);
    System.out.println(Md5Utils.getMd5(input));

  }
}